import Vapor
import Fluent

final class Department: Model, Content {
    
    static let schema: String = "department"
    
    @ID
    var id: UUID?
    
    @Field(key: "name")
    var name: String
    
    @Siblings(through: DepartmentEmployeePivot.self, from: \.$department, to: \.$employee)
    var employees: [Employee]

    init() {
        
    }
    
    
}
